import request from '@/utils/request'

const path = '/monograph';

export function getMonographs() {
    return request({
        url: path,
        method: 'get'
    })
}

export function addMonograph(data) {
    return request({
        url: path,
        method: "post",
        data
    })
}

export function deleteMonograph(id) {
    return request ({
        url: path + "/" + id,
        method: "delete"
    })
}

export function updateMonograph(id, data) {
    return request({
        url: path + "/" + id,
        method: "put",
        data: data
    })
}